// 导入js-cookie模块，作用持久化保存数据
import Cookies from 'js-cookie'
// 保存数据起的名字
const TokenKey = 'hr-scss-141'

export function getToken () {
  return Cookies.get(TokenKey)
}

export function setToken (token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}
